package com.hrma.dao;

import com.github.pagehelper.Page;
import com.hrma.entity.Post;
import com.hrma.entity.SelectResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PostMapper {
    void addPost(Post data);

    void deletePost(int id);

    void updatePost(Post data);

    List<SelectResult> select();

    Page<Post> getList(Post post);

    boolean exist(@Param("id") Integer id, @Param("postNum") String postNum, @Param("postName") String postName);
}
